Skip to content

Conversation

@syntron
Copy link
Contributor

@syntron syntron commented Nov 23, 2025

Add / fix argument timeout to / of ModelicaSystem and ModelicaSystemDoE

@syntron syntron force-pushed the ModelicaSystem_timeout branch from ecd996f to d37ec0b Compare November 24, 2025 20:57
Copy link
Member

@adeas31 adeas31 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ModelicaSystemDoE and ModelicaSystem doesn't really need timeout. The timeout is used by OMCSessionZMQ so it is better to expose timeout with API so it can be set to something else other than default 10s.

I also saw that timeout is used very randomly in the code. For starting omc we are using timeout of 2s and then each process class also uses timeout. It is also used for command execution. Perhaps its better to clean up the code and use timeout properly.

@syntron syntron requested a review from adeas31 November 26, 2025 18:40
@syntron
Copy link
Contributor Author

syntron commented Nov 26, 2025

@adeas31 update the code to:
(1) remove all timeouts from ModelicaSystem* classes
(2) define timeouts in OMCSession*
(3) allow to set timeout value
(4) use one variable for all OMC startup / program execution timeouts
(5) wrap timeout handling in a separate function

@syntron
Copy link
Contributor Author

syntron commented Nov 26, 2025

move point (1) to PR #383; this PR could be applied now

the remaining changes should be applied after the modifications of OMCSession as it changes the same code and this means only one (final) rebase

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants